<?php

namespace Xin\Coze\Providers;

class WorkspacesProvider extends AbstractProvider
{
	/**
	 * 查看空间列表
	 * @param int $page
	 * @param int $pageSize
	 * @param array $options
	 * @return array|null
	 */
	public function list(int $page = 1, int $pageSize = 10, array $options = [])
	{
		return $this->coze->httpGet(
			'/v1/workspaces',
			[
				'page' => $page,
				'page_size' => $pageSize,
			],
			$options
		);
	}
}
